const commonRoutes = [
  {
    path: "checkCard", // 考勤打卡
    component: () => import("@/views/check/checkCard")
  },
  {
    name: "checkCard/imports",
    path: "checkCard/imports", // 考勤打卡数据导入
    component: () => import("@/views/check/checkCard/importsDataTwo")
  },
  {
    name: "checkCard/workingHours/msg",
    path: "checkCard/workingHours/msg", // 考勤打卡
    component: () => import("@/views/check/checkCard/workingHoursMsg")
  },
  {
    path: "checkCard/cardDetail", // 打卡记录
    component: () => import("@/views/check/checkCard/detail")
  },
  {
    path: "checkTable", // 每日考勤
    component: () => import("@/views/check/checkTable")
  },
  {
    path: "checkSet", // 考勤设置
    component: () => import("@/views/check/checkSet")
  },
  {
    path: "checkSet/checkEditorRules/:id", // 打卡规则
    component: () => import("@/views/check/checkSet/editorRules")
  },
  {
    path: "checkTimeEntry", // 工时录入
    component: () => import("@/views/check/checkTimeEntry")
  }
];

export default {
  path: "/check", // 考勤打卡
  component: () => import("@/layout"),
  children: [].concat(commonRoutes, [])
};
